home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Tools - Objects / Installation Folder / SADE Install < prev    next >
Text File  |  1990-07-23  |  3KB  |  103 lines

  1. #    S A D E   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1990 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install either SADE 1.0, 1.1 or 1.2a1 from the 
  7. #    E.T.O. #1 distribution compact disk into a folder called "SADE Folder"
  8. #    on the destination hard disk. 
  9. #
  10. #    Options: None
  11. #
  12. #    This script makes use of the following Shell variables:
  13. #
  14. #    {CDVolume}        - the name of the CD Distribution volume
  15. #
  16. #    {SystemFolder}    - the path to the folder containing the currently active System
  17. #
  18. #    {DestVolume}    - the name of the volume from which the Installer was launched
  19. #
  20. #    {SADEOption}    - a flag used to indicate which version of SADE to install
  21. #
  22. #    {MPWSource}        - the path to the various MPW and SADE versions
  23. #
  24.  
  25.  
  26. If    "{SADEOption}" == 1            ### install SADE 1.0
  27.     set Source    "{MPWSource}MPW 3.0:SADE 1.0:"
  28. Else If    "{SADEOption}" == 2        ### install SADE 1.1
  29.     set Source    "{MPWSource}MPW 3.1:SADE 1.1:"
  30. Else If    "{SADEOption}" == 3        ### install SADE 1.2a2
  31.     set Source    "{MPWSource}MPW 3.2 EXP1:SADE 1.2b1:"
  32. Else
  33.     Exit 1
  34. End
  35.  
  36.  
  37. ###    First, copy SADE's Multifinder and DA Handler into the System Folder
  38.  
  39. ###    See if MultiFinder already exists, if so, rename it to "MultiFinder.Old"
  40.  
  41. if "`Exists -f "{SystemFolder}MultiFinder"`"
  42.  
  43.     If "`Exists -f "{SystemFolder}MultiFinder.Old"`"
  44.         Delete -y "{SystemFolder}MultiFinder.Old"
  45.     End
  46.  
  47.     Rename -y "{SystemFolder}MultiFinder"     "{SystemFolder}MultiFinder.Old"
  48. End
  49.  
  50. Duplicate -y "{Source}Multifinder"        "{SystemFolder}MultiFinder"
  51.  
  52.  
  53. ###    See if DA Handler already exists, if so, rename it to "DA Handler.Old"
  54.  
  55. If "`Exists -f "{Source}DA Handler"`"    ### doesn't exist in SADE 1.0
  56.  
  57.     If "`Exists -f "{SystemFolder}DA Handler"`"
  58.         If "`Exists -f "{SystemFolder}DA Handler.Old"`"
  59.             Delete -y "{SystemFolder}DA Handler.Old"
  60.         End
  61.         
  62.         Rename -y "{SystemFolder}DA Handler"     "{SystemFolder}DA Handler.Old"
  63.     End
  64.     
  65.     Duplicate -y "{Source}DA Handler"        "{SystemFolder}DA Handler"
  66. End
  67.  
  68. ###    Now, copy the rest of the stuff
  69.  
  70. ###    See if a folder called "SADE Folder" already exists, 
  71. ###    if so, rename it to "SADE Folder.Old"
  72.  
  73. if "`Exists -d "{DestVolume}SADE Folder"`"
  74.  
  75.     If "`Exists -f "{DestVolume}SADE Folder.Old"`"
  76.         Delete -y "{DestVolume}SADE Folder.Old"
  77.     End
  78.     
  79.     Rename -y "{DestVolume}SADE Folder"     "{DestVolume}SADE Folder.Old"
  80. End
  81.  
  82. NewFolder "{DestVolume}SADE Folder"
  83.  
  84. Duplicate -y "{Source}SADE:SADE"                    "{DestVolume}SADE Folder:SADE"
  85. Duplicate -y "{Source}SADE:SADE.Help"                "{DestVolume}SADE Folder:SADE.Help"
  86. Duplicate -y "{Source}SADE:SADE New User Worksheet"    "{DestVolume}SADE Folder:SADE New User Worksheet"
  87. Duplicate -y "{Source}SADE:SysErrs.Err"                "{DestVolume}SADE Folder:SysErrs.Err"
  88. Duplicate -y "{Source}SADE:SADEUserStartup"            "{DestVolume}SADE Folder:SADEUserStartup"
  89. Duplicate -y "{Source}SADE:SADEStartUp"                "{DestVolume}SADE Folder:SADEStartUp"
  90. Duplicate -y "{Source}SADEScripts:"                    "{DestVolume}SADE Folder:SADEScripts:"
  91.  
  92. ### That's It!
  93.  
  94. ###    Special Case for SADE 1.0 - New 'LIB' tool required
  95.  
  96. If    "{SADEOption}" == 1
  97.  
  98.     if "`Exists -d "{DestVolume}MPW Folder"`"
  99.         Duplicate -y "{Source}Tools:Lib"    "{DestVolume}MPW Folder:Tools:Lib"
  100.     End
  101. End
  102.  
  103. Exit 0